<template>
    <div>
      <mt-header :title="title">
        <mt-button @click="goBack" slot="left" icon="back">返回</mt-button>
        <mt-button icon="more" slot="right"></mt-button>
      </mt-header>
    </div>
</template>

<script>
    export default {
        name: "navBar",
      methods:{
        goBack(){
          this.$router.go(-1);
        }
      },
      props:['title']
    }
</script>

<style scoped>

  .mint-header{
    background-color: #97b1c5;
  }

</style>
